#!/usr/bin/env node

const EventEmitter = require('events').EventEmitter,
      util = require('util');

function Radio(station){
  EventEmitter.call(this);
  let _this = this;

  setTimeout(()=>{
    _this.emit('play',station);
  },0);

  setTimeout(()=>{
    _this.emit('stop',station);
  },5000);

}

util.inherits(Radio,EventEmitter);

module.exports = Radio;
